package com.neo.scalaCookBook.C1_String

/**
  * Autuor : zhaoshun
  * Time   : 2017/10/17 22:26
  * Email  : tmby1314@163.com  
  */

/**
  * what are you to do something, describe it
  */
object StringFindAndReplace {

  def main(args: Array[String]): Unit = {
    val address = "123 Main Street".replaceAll("[0-9]","x")
    println(address)
    val regex = "[0-9]".r
    val newAddress = regex.replaceAllIn("123 Main Street", "x")
    println(newAddress)
  }
}
